<template>
  <div>
    <h3>controller配置</h3>
    <el-row :gutter="20">
      <el-col :span="5">
        包名：
        <el-input placeholder="controller包名" :disabled="!projectSetting.createController||!projectSetting.createService" v-model="controllerSetting.controllerPackage"/>
      </el-col>
      <el-col :span="7">
        返回值全类名：
        <el-input class="input-mrtf" placeholder="默认ModelAndView" :disabled="!projectSetting.createController||!projectSetting.createService" v-model="controllerSetting.methodReturnTypeFullName"/>
      </el-col>
      <el-col :span="6">
        返回值静态方法：
        <el-input placeholder="方法名" :disabled="!projectSetting.createController||!projectSetting.createService" class="reurnTypeStatticMethod" v-model="controllerSetting.returnTypeStaticMethod"/>

      </el-col>
      <el-col :span="3">
        <el-checkbox label="restful" :disabled="!projectSetting.createController||!projectSetting.createService" v-model="controllerSetting.useRestful"/>
      </el-col>
      <el-col :span="3">
        <el-checkbox label="强制ID操作" :disabled="!projectSetting.createController||!projectSetting.createService" v-model="controllerSetting.forceIdOperate"/>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  import {mapGetters} from "vuex";
  export default {
    name: "Project",
    computed: {
      ...mapGetters(["controllerSetting","projectSetting"])
    }
  }
</script>

<style scoped>
  @import "../../../static/css/content.css";

  .el-input {
    width: 54%;
  }
  .input-mrtf{
    width: 55%;
  }
  .reurnTypeStatticMethod{
    width: 35%;
  }
</style>
